<template>
  <div class="home">
    <header>
      <span class="iconfont">&#xe6bc;</span>
      <h2>登录</h2>
      <p>
        <span class="iconfont">&#xf0112;</span>
        <span class="iconfont">&#xe71e;</span>
        <i></i>
      </p>
    </header>
    <main>
      <h1>
        <img src="images/logo.jpg" alt="" />
      </h1>
      <p>手机号</p>
      <p><b>验证码</b> <input type="text" value="获取验证码" /></p>
      <input type="submit" value="登录" class="login" />
    </main>
    <footer></footer>
  </div>
</template>
<script>
// import axios from "axios"
import axios from "../utils/http";
export default {
  data() {
    return {
      nav_list: [],
    };
  },
  created() {
    this.get_nav();
  },
  methods: {
    get_nav() {
      axios.get("/getcate").then((res) => {
        this.nav_list = res.data.list;
        console.log(res);
      });
    },
  },
};
</script>
<style>
@import "../../public/css/register.css";
</style>